import 'package:base/router/router.dart';
import 'package:get/get.dart';
import 'package:login/page/login_binding.dart';
import 'package:login/page/login_page.dart';
import 'package:login/page/login_signup.dart';

class LoginRouter extends IRouterProvider {
  static const LOGIN = "/login";
  static const LOGIN_SIGNUP = "/signup";

  static goLogin() {
    Get.toNamed(LoginRouter.LOGIN);
  }

  static goLoginSignup() {
    Get.toNamed(LoginRouter.LOGIN_SIGNUP);
  }

  @override
  List<GetPage> initRouter() {
    return [
      GetPage(name: LOGIN, page: () => LoginPage(), binding: LoginBinding()),
      GetPage(
        name: LOGIN_SIGNUP,
        page: () => LoginSignUpPage(),
      ),
    ];
  }
}
